/* BDVB-App
Copyright (C) 2014 Sascha Manns <Sascha.Manns@outlook.de>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/


using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace AppStudio.Data
{
    public class AboutDataSource : IDataSource<HtmlSchema>
    {
        private IEnumerable<HtmlSchema> _data = new HtmlSchema[]
        {
            new HtmlSchema
            {
                Id = "{0919d503-ef36-408f-9e55-fa2643f45640}",
                Content = @"Diese App wurde von einem Mitglied als Community-Projekt gestartet. Der BDVB ist nicht haftbar für die Inhalte dieser App.<br><br>Verantwortlich:<br>Sascha Manns<br>Maifeldstraße 10<br>56727 Mayen<br>Tel.: 02651-4014045<br>Email: Sascha.Manns@outlook.de<br>Ideen und Bugreports können gerne hier eingereicht werden: https://bdvbapp.codeplex.com/"
            }
        };

        public async Task<IEnumerable<HtmlSchema>> LoadData()
        {
            return await Task.Run(() =>
            {
                return _data;
            });
        }

        public async Task<IEnumerable<HtmlSchema>> Refresh()
        {
            return await LoadData();
        }
    }
}
